package team.se.tms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import team.se.tms.dao.Dao;
import team.se.tms.po.AuthorityInfo;
import team.se.tms.service.AuthorityService;

import java.util.List;
/**
 *
 *
 * @author johnny
 * @date 2018/12/20
 */
@Service("authorityService")
public class AuthorityServiceImpl implements AuthorityService{
    @Autowired
    Dao dao;
    /**
     * 获取所有权限
     *
     * @return List<AuthorityDetail> 权限列表
     * @throws Exception 异常
     * @create on 2018/12/20 by johnny
     */
    @Override
    public List<AuthorityInfo> listAllAuthorityDetails() throws Exception {
        List<AuthorityInfo> authorityDetailList
                =dao.selectList("AuthorityInfoMapper.selectAllAuthorityInfos",null);

        return authorityDetailList;
    }
}
